import {createRouter, createWebHashHistory} from 'vue-router'

const routes = [
  {
    path: '/',
    name: '根路径',
    redirect: '/themeSwitching',
    component: () => import('@/components/MainRouter'),
    children: [
      {
        path: 'themeSwitching',
        name: '主题切换',
        component: () => import('@/views/themeSwitching')
      },
    ]
  }
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
